JS 與 Node.js 的執行環境異同


Posted by YongChenSu on 2020-12-06

JS 與 Node.js 的執行環境異同

  • 瀏覽器是 JS 的執行環境 (runtime),而電腦的 cli 是 node.js 的執行環境。
  • document.querySelector 則是在瀏覽器上 JS 可以用的元素。
  • FS (file system) 則是 cli 上讓 node.js 可執行的指令,可以讀檔、寫檔。
  • console.log() 則是兩者都有提供。

參考資源


#程式導師實驗計畫 #前端







Related Posts

[1] Python 3 簡介與安裝

[1] Python 3 簡介與安裝

Windows Terminal 簡單紀錄

Windows Terminal 簡單紀錄

Demystifying Stubs in IT: A Comprehensive Exploration of IT Stubs

Demystifying Stubs in IT: A Comprehensive Exploration of IT Stubs


Comments